import http from 'utilMethods/http'

const request = 'http://report.wsn2019.club/notice'

const notice = {
  addNotice (params) {
    return http.get(`${request}/add`, params);
  },
  getNoticesByGroupId (groupId) {
    return http.get(`${request}/query/` + groupId);
  },
  updateNotice (params) {
    return http.post(`${request}/update`, params);
  },
  deleteNotice (noticeId) {
    return http.get(`${request}/delete/` + noticeId);
  }
}

export default notice